da03d2e8386d74283212a3f66ecf13eaa640367f,sonar-batch/src/main/java/org/sonar/batch/index/ResourceKeyMigration.java,ResourceKeyMigration,migrateFiles,#Project#Map#Map#Map#number#,102

Before Change


          sonarFile = new File(oldKey);
          parentOldKey = module.getEffectiveKey() + ":" + sonarFile.getParent().getDeprecatedKey();
        }
        String parentNewKey = module.getEffectiveKey() + ":" + getParentKey(matchedFile);
        if (!deprecatedDirectoryKeyMapper.containsKey(parentOldKey)) {
          deprecatedDirectoryKeyMapper.put(parentOldKey, parentNewKey);
        } else if (!parentNewKey.equals(deprecatedDirectoryKeyMapper.get(parentOldKey))) {

After Change


          sonarFile = new File(oldKey);
          parentOldKey = String.format("%s:%s", module.getEffectiveKey(), sonarFile.getParent().getDeprecatedKey());
        }
        String parentNewKey = String.format("%s:%s", module.getEffectiveKey(), getParentKey(matchedFile));
        if (!deprecatedDirectoryKeyMapper.containsKey(parentOldKey)) {
          deprecatedDirectoryKeyMapper.put(parentOldKey, parentNewKey);
        } else if (!parentNewKey.equals(deprecatedDirectoryKeyMapper.get(parentOldKey))) {